package light.head.model;

import java.io.Serializable;

/**
 * 文档公开权限
 *
 */
public class AuthorityPK implements Serializable{

	private static final long serialVersionUID = 2438478769590587241L;
	
	private Integer dCode;		
	private Integer pc;				//指定权限编号
	private Byte pType;				// 公开权限（1、全部公开  2、指定公开）	
	private Integer dc;				//文档编号
	
	
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {  
            return true;  
        }  
        if (null == obj) {  
            return false;  
        }  
        if (!(obj instanceof AuthorityPK)) {  
            return false;  
        }  
  
        final AuthorityPK aho = (AuthorityPK) obj;
        if (null == dCode || dCode.intValue() != aho.getdCode().intValue()) {
            return false;
        }
        if (null == pType || pType.intValue() != aho.getpType().intValue()) {
            return false;
        }
        if (null == pc || pc.intValue() != aho.getPc().intValue()) {
            return false;
        }
        return true;  
	}
	@Override
	public int hashCode() {
		int result;  
        result = dCode.hashCode();  
        result = 29 * result + pType.hashCode(); 
        result = 29 * result + pc.hashCode();
        return result;  
	}
	
	
	
	
	
	
	
	
	
	
	public Integer getdCode() {
		return dCode;
	}
	public void setdCode(Integer dCode) {
		this.dCode = dCode;
	}
	public Byte getpType() {
		return pType;
	}
	public void setpType(Byte pType) {
		this.pType = pType;
	}
	public Integer getPc() {
		return pc;
	}
	public void setPc(Integer pc) {
		this.pc = pc;
	}
	public Integer getDc() {
		return dc;
	}
	public void setDc(Integer dc) {
		this.dc = dc;
	}
	

}
